package sdu.icat.pj.util;

import org.apache.shiro.crypto.hash.SimpleHash;

import sdu.icat.pj.support.Constants;

public class MD5Util {

    public static String getMD5Password(String username,String password) {
	return new SimpleHash(Constants.MD5,password,username,2).toHex();
    }
    
    public static void main(String[] args) {
	String result = getMD5Password("lijiahao", "123456");
	System.out.println(result);
    }
    
}
